<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>银行</title>
    <link href="res/style.css" rel="stylesheet">
    <script src="http://47.106.66.89:8080/js/vue.min.js"></script>
    <script src="http://47.106.66.89:8080/js/axios.min.js"></script>
</head>
<body>
<div id="app" class="flex">
    <main>
        <header class="flex">
            <div>
                <h3>源辰银行</h3>
                <small>ycinfo bank</small>
            </div>
            <div id="contact">
                <div>客服电话: 8888</div>
                <div>网址: www.ycinfo.bank.com</div>
            </div>
        </header>
        <div class="msg">
            倒计时: <h2>32</h2> 秒
        </div>
        <div id="pane" class="flex">
            <div class="btns">
                <a class="left" @click="query">查询</a>
                <a class="left" @click="transfer">转账</a>
                <a class="left" @click="setpwd">改密</a>
            </div>
            <div id="info">
                <h2>请选择服务</h2>
            </div>
            <div class="btns">
                <a class="right" @click="withdraw">取款</a>
                <a class="right" @click="deposit">存款</a>
                <a class="right" @click="pay">缴费</a>
                <a class="right" @click="index">退出</a>
            </div>
        </div>
    </main>
</div>
</body>

<script>
    var v = new Vue({
        el:"#app",
        data:{


        },
        methods:{

            getUrlKey: function (name) {
                return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null
            },
            query(){
                var uid = this.getUrlKey("id");
                console.log(uid)
                location.href = "query.html?id="+uid
            },
            setpwd(){
                var uid = this.getUrlKey("id");
                location.href = "setpwd.html?id="+uid
            },
            transfer(){
                var uid = this.getUrlKey("id");
                location.href = "transfer.html?id="+uid
            },
            withdraw(){
                var uid = this.getUrlKey("id");
                location.href = "withdraw.html?id="+uid
            },
            deposit(){
                var uid = this.getUrlKey("id");
                location.href = "deposit.html?id="+uid
            },
            pay(){
                var uid = this.getUrlKey("id");
                location.href = "pay.html?id="+uid
            },
            index(){
                var uid = this.getUrlKey("id");
                location.href = "index.html?id="+uid
            }
        }
    })
</script>
</html>
